<!-- 右侧  -->
<div id="page-inner">
    <div class="panel-body">
        <div class="row">
            <div class="col-md-12">
                <h1 class="page-header">
                    水平衡测试 <small>企业年用水情况元数据</small>
                </h1>
            </div>
        </div>
        <div id="toolbar" class="btn-group">
            <button id="btn_add" type="button" class="btn btn-default">
                <span class="glyphicon glyphicon-plus" aria-hidden="true"></span>新增
            </button>
            <button id="btn_edit" type="button" class="btn btn-default">
                <span class="glyphicon glyphicon-edit" aria-hidden="true"></span>编辑
            </button>
            <button id="btn_delete" type="button" class="btn btn-default">
                <span class="glyphicon glyphicon-remove" aria-hidden="true"></span>删除
            </button>
            <button id="btn_search" type="button" class="btn btn-default">
                <span class="glyphicon glyphicon-search" aria-hidden="true"></span>搜索
            </button>
        </div>
        <table id="data_table" class="table-striped table-hover"></table>
    </div>
</div>


<!-- 编辑 -->
<div class="modal fade" id="edit_data" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title">编辑一项企业年用水情况元信息</h4>
            </div>
            <div class="modal-body">
                <div class="form-group">
                    <label>中文名称</label>
                    <input class="form-control" placeholder="必填" id="editCsName" value="">
                </div>
                <div class="form-group">
                    <label>英文名称</label>
                    <input class="form-control" placeholder="选填" id="editEnName" value="">
                </div>
                <div class="form-group">
                    <label>定义</label>
                    <input class="form-control" placeholder="必填" id="editDefination" value="">
                </div>
                <div class="form-group">
                    <label>数据类型</label>
                    <select name="dataType" class="form-control" id="editDataType" >
                        <option value="varchar(256)">字符型</option>
                        <option value="NUMBER(11,2)">小数型</option>
                        <option value="int">整数型</option>  
                    </select>
                </div>
                <div class="form-group">
                    <label>单位</label>
                    <input class="form-control" placeholder="水量单位已默认为x10⁴m³" id="editUnit" value="">
                </div>
                <div class="form-group">
                    <label>所属组类</label>
                    <select name="dataType" class="form-control" id="editFaLevel">
                        <option value="1">新水量</option>
                        <option value="2">重复利用水量</option>
                        <option value="3">其他水量</option>
                        <option value="4">考核指标</option> 
                    </select>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-primary" id="edit_data_submit">提交</button>
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
            </div>
        </div>
    </div>
</div>

<div class="modal fade" id="new_data" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title">添加一项企业年用水情况元信息</h4>
            </div>
            <div class="modal-body">
                <div class="form-group">
                    <label>中文名称</label>
                    <input class="form-control" placeholder="必填" id="newCsName" value="">
                </div>
                <div class="form-group">
                    <label>英文名称</label>
                    <input class="form-control" placeholder="选填" id="newEnName" value="">
                </div>
                <div class="form-group">
                    <label>定义</label>
                    <input class="form-control" placeholder="必填" id="newDefination" value="">
                </div>
                <div class="form-group">
                    <label>数据类型</label>
                    <select name="dataType" class="form-control" id="newDataType" >
                        <option value="varchar(256)">字符型</option>
                        <option value="NUMBER(11,2)">小数型</option>
                        <option value="int">整数型</option>
                    </select>
                </div>
                <div class="form-group">
                    <label>单位</label>
                    <input class="form-control" placeholder="上标请用^" id="newUnit" value="">
                </div>
                <div class="form-group">
                    <label>所属组类</label>
                    <select name="dataType" class="form-control" id="newFaLevel">
                        <option value="1">新水量</option>
                        <option value="2">重复利用水量</option>
                        <option value="3">其他水量</option>
                        <option value="4">考核指标</option>
                    </select>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-primary" id="new_data_submit">提交</button>
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
            </div>
        </div>
    </div>
</div>
<!-- 搜素 -->
<div class="modal fade" id="search_data" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title">搜索</h4>
            </div>
            <div class="modal-body" >
                <div class="form-group">
                    <label>搜索条件</label>
                    <input class="form-control" placeholder="请输入搜索条件" id="search_content" type="text">
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-primary" id="search_data_submit">提交</button>
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
            </div>
        </div>
    </div>
</div>
<script src="pages/js/field_check.js"></script>
<script src="pages/js/meta_eva_year_wuse_info.js"></script>